<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			div {
				display: flex;
				width: 808px;
				height: 400px;
				background-color: antiquewhite;

				/* 主轴方向 x */
				flex-direction: row;

                /* 
				   默认不换行,如果转不下,就会缩小子标签的宽度 
				   flex-wrap: wrap;换行
				*/
				flex-wrap: wrap;
				
				/* 换行后,通过`align-content`设置对齐方式 */
				align-content: flex-end;
			}

			div span {
				width: 150px;
				height: 100px;
				background-color: orange;
				margin: 2px;
			}
		</style>
	</head>
	<body>
		<div>
			<span>1</span>
			<span>2</span>
			<span>3</span>
			<span>4</span>
			<span>5</span>
			<span>6</span>
		</div>
	</body>
</html>
